//**********************************************************************************
// Klasse View - GUI-Hauptklasse
//
//
//**********************************************************************************
package binarytree.view;

import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.JFrame;

public class View extends JFrame {

    private final int FRAME_WIDTH = 1024;
    private final int FRAME_HEIGHT = 768;
    private final RightMenuPanel rightMenuPanel;
    private final LeftDrawPanel leftDrawPanel;

    public View() {

        // Main-Frame  Eigenschaften setzen
        setTitle("Binärbaum");
        setResizable(true);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setLayout(new BorderLayout());
        setSize(new Dimension(FRAME_WIDTH, FRAME_HEIGHT));
        setMinimumSize(new Dimension(FRAME_WIDTH, FRAME_HEIGHT));
        // Elemente hinzufügen
        rightMenuPanel = new RightMenuPanel();
        leftDrawPanel = new LeftDrawPanel();
        add(rightMenuPanel, BorderLayout.LINE_END);
        add(leftDrawPanel, BorderLayout.CENTER);

    }

    public LeftDrawPanel getLeftDrawPanel() {
        return leftDrawPanel;
    }

    public RightMenuPanel getRightMenuPanel() {
        return rightMenuPanel;
    }
    
    
}
